<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="A fully featured admin theme which can be used to build CRM, CMS, etc.">
        <meta name="author" content="Coderthemes">
        <!-- App Favicon icon -->
        <link rel="shortcut icon" href="assets/images/favicon.ico">
        <!-- App Title -->
        <title>{{config('app.name')}}</title>

        <link href="{{asset('sharecar/assets/css/bootstrap.min.css')}}" rel="stylesheet" type="text/css" />
        <link href="{{asset('sharecar/assets/css/core.css')}}" rel="stylesheet" type="text/css" />
        <link href="{{asset('sharecar/assets/css/components.css')}}" rel="stylesheet" type="text/css" />
        <link href="{{asset('sharecar/assets/css/icons.css')}}" rel="stylesheet" type="text/css" />
        <link href="{{asset('sharecar/assets/css/pages.css')}}" rel="stylesheet" type="text/css" />
        <link href="{{asset('sharecar/assets/css/menu.css')}}" rel="stylesheet" type="text/css" />
        <link href="{{asset('sharecar/assets/css/responsive.css')}}" rel="stylesheet" type="text/css" />

        <!-- HTML5 Shiv and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
        <![endif]-->

        <script src="{{asset('sharecar/assets/js/modernizr.min.js')}}"></script>

    </head>


    <body>


        @include('sharecar.header')


        <div class="wrapper">
            <div class="container">

                <!-- Page-Title -->
                

                <div class="row">
                    <div class="col-sm-12">
                        <div class="card-box">
                            <div class="row">
                                <div class="col-lg-10">
                                    

                                    <div class="p-20">
                                        <table class="table m-0">

                                            <thead>
                                                <tr>
                                            <th>Booking Time</th>
                                            <th>Registration Number</th>
                                          <th>Make</th>
                                          <th>Class</th>
                                          <th>Price</th>
                                          <th>Minutes</th>
                                           <th>Money</th>
                                                    
                                                </tr>
                                                <tr>
                                                    <td>{{$data->booking_at}}</td>
                                                    <td>{{$data->car_code}}</td>
                                                    <td>{{$data->car_model}}</td>
                                                    <td>{{$data->car_type}}</td>
                                                    <td>{{$data->car_price}}</td>
                                                <td>{{$data->minutes}}</td>
                                                <td>{{$data->money}}</td>    
                                                </tr>
                                            </thead>
                                            <tbody>
                                             
                                          
                                            </tbody>
                                        </table>
                                    </div>

                                </div>
                                <div class="col-lg-10">
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" name="frmTransaction">
   <input type="hidden" name="business" value="s3613222@student.rmit.edu.au">
   <input type="hidden" name="cmd" value="_xclick">
    <input type="hidden" name="item_name" value="{{$data->car_model}}">
   <input type="hidden" name="item_number" value="{{$data->car_id}}">
   <input type="hidden" name="amount" value="{{$data->money}}">   
   <input type="hidden" name="currency_code" value="AUD">   
   <input type="hidden" name="cancel_return" value="https://car.fieldpoint.tech/payment-cancel">
   <input type="hidden" name="return" value="https://car.fieldpoint.tech/payment-status?order_id={{$data->id}}">
   <button class="btn btn-primary" type="submit">Pay</button>
</form>

                                </div>

                               
                            </div>
                        </div>
                    </div>
                </div>



                


                


                


                <!-- Footer -->
                <footer class="footer text-right">
                    <div class="container">
                        <div class="row">
                            <div class="col-xs-6">
                                © 2019. All rights reserved.
                            </div>
                            <div class="col-xs-6">
                                <ul class="pull-right list-inline m-b-0">
                                    <li>
                                        <a href="#">About</a>
                                    </li>
                                    <li>
                                        <a href="#">Help</a>
                                    </li>
                                    <li>
                                        <a href="#">Contact</a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </footer>
                <!-- End Footer -->

            </div> <!-- end container -->
        </div>
        <!-- end wrapper -->
<div class="modal fade" id="carModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            
            <div class="modal-body">
              <div class="text-left">
                                        <p class="text-muted font-13"><strong>车牌号 :</strong> <span class="m-l-15" name="code"></span></p>

                                        <p class="text-muted font-13"><strong>Model :</strong><span class="m-l-15" name="model"></span></p>

                                        <p class="text-muted font-13"><strong>种类 :</strong> <span class="m-l-15" name="type"></span></p>

                                        <p class="text-muted font-13"><strong>价格 :</strong> <span class="m-l-15" name="price"></span></p>

                                    </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                <button type="button" class="btn btn-primary btn-save">Book</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>


        <!-- jQuery  -->
        <script src="{{asset('sharecar/assets/js/jquery.min.js')}}"></script>
        <script src="{{asset('sharecar/assets/js/bootstrap.min.js')}}"></script>
        <script src="{{asset('sharecar/assets/js/detect.js')}}"></script>
        <script src="{{asset('sharecar/assets/js/fastclick.js')}}"></script>
        <script src="{{asset('sharecar/assets/js/jquery.slimscroll.js')}}"></script>
        <script src="{{asset('sharecar/assets/js/jquery.blockUI.js')}}"></script>
        <script src="{{asset('sharecar/assets/js/waves.js')}}"></script>
        <script src="{{asset('sharecar/assets/js/wow.min.js')}}"></script>
        <script src="{{asset('sharecar/assets/js/jquery.nicescroll.js')}}"></script>
        <script src="{{asset('sharecar/assets/js/jquery.scrollTo.min.js')}}"></script>

        <!-- App core js -->
        <script src="{{asset('sharecar/assets/js/jquery.core.js')}}"></script>
        <script src="{{asset('sharecar/assets/js/jquery.app.js')}}"></script>

        <script type="text/javascript">
       </script>



    </body>
</html>